package com.fantasy.file;

import java.io.File;

import org.apache.commons.io.monitor.FileAlterationListener;
import org.apache.commons.io.monitor.FileAlterationObserver;

public class ZJPFileListener implements FileAlterationListener{

	
	ZJPFileMonitor monitor = null;
	
	public void onStart(FileAlterationObserver observer) {
		//System.out.println("onStart");
	}
	
	public void onDirectoryCreate(File directory) {
		System.out.println("onDirectoryCreate:" +  directory.getName());
	}
	
	public void onDirectoryChange(File directory) {
		System.out.println("onDirectoryChange:" + directory.getName());
	}

	
	public void onDirectoryDelete(File directory) {
		System.out.println("onDirectoryDelete:" + directory.getName());
	}

	
	public void onFileCreate(File file) {
		System.out.println("onFileCreate:" + file.getName());
	}

	
	public void onFileChange(File file) {
		System.out.println("onFileCreate : " + file.getName());
	}

	
	public void onFileDelete(File file) {
		System.out.println("onFileDelete :" + file.getName());
	}

	
	public void onStop(FileAlterationObserver observer) {
		//System.out.println("onStop");
	}


}
